Conversation
Initial implementation of the PromptProvider library with full Langfuse API integration and local prompt fallback. Includes service interfaces, models, options, dependency injection, and README. Supports prompt creation, retrieval, batch operations, and label updates via Langfuse, with local defaults as fallback.
Moved source files out of PromptProvider subfolder to project root and updated namespaces. Added IDefaultPromptsProvider interface and ConfigurationDefaultPromptsProvider implementation for configurable default prompts. Updated dependency injection to register the default prompts provider. Refactored PromptService to use IDefaultPromptsProvider instead of direct options access. Added CI and NuGet publish GitHub workflows, new README, and initial unit tests. Removed unused files and consolidated project files.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces the initial version of PromptProvider, a .NET 9.0 library for managing prompts with Langfuse integration and local fallback support.
Key Changes:
- Implements core services (
PromptService,LangfuseService) for prompt management with Langfuse API integration - Provides dependency injection setup and configuration-based default prompts provider
- Adds complete model definitions for prompts, requests, and responses with JSON serialization support
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| Services/PromptService.cs | Main service orchestrating prompt operations with Langfuse and local fallback |
| Services/LangfuseService.cs | HTTP client wrapper for Langfuse API interactions with authentication |
| Services/ConfigurationDefaultPromptsProvider.cs | Simple provider for retrieving default prompts from configuration |
| Models/*.cs | Data models for prompts, requests, responses, and Langfuse API structures |
| Options/*.cs | Configuration option classes including LangfuseOptions and PromptsOptions |
| Interfaces/*.cs | Service and provider interfaces defining the public API contracts |
| DependencyInjection.cs | Extension method for registering PromptProvider services |
| README.md | Library documentation with usage examples and configuration guidance |
| PromptProvider.csproj | Project configuration targeting .NET 9.0 with required dependencies |
| PromptProvider.sln | Visual Studio solution file |
| LICENSE | Simplified MIT license text (incomplete) |
| .github/workflows/*.yml | CI/CD workflows for building, testing, and publishing to NuGet |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…PromptProvider into alex/all-original-files
otapiero
approved these changes
Nov 20, 2025
Contributor
otapiero
left a comment
There was a problem hiding this comment.
Langfuse also has a different type of prompt, a chat type
When in the request to get or create a prompt, the type is chat and not text, the schema of the prompt changes a lot, and for now, our code will not support them
We should consider adding functions to get and create chat prompts
otapiero
added a commit
that referenced
this pull request
Feb 16, 2026
…ration Auto-apply configured Label from PromptConfiguration during prompt fetching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.